<?
session_start();
if ($_SESSION['admin']!="OK")
{
	echo "<script language='javascript'>alert('Please log in!');window.location.href='login.php';</script>";
	exit;
}
include ("config.php");
$conn=mysql_connect($host,$user,$password);
mysql_select_db($db);
mysql_query("SET NAMES UTF8");  
$query="delete from vote_choice where id='".$_GET["id"]."'";
$result=mysql_query($query);
echo "<script language='javascript'>alert('Selected Option Deleted!');history.go(-1);</script>";
?>
